<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Login</title>
</h:head>
<h:body>

	<f:loadBundle var="usuario" basename="br.com.projeto.mensagem.entidade.Usuario"/>
	
	<h:form>
		<h:panelGrid columns="2">
			<h:outputLabel value="#{usuario['login']}" for="login"/>
			<h:inputText id="login" required="true" value="#{loginMBean.usuario.login}" label="#{usuario['login']}" title="#{usuario['login']}"/>
			
			<h:outputLabel value="#{usuario['senha']}" for="senha"/>
			<h:inputSecret id="senha" required="true" value="#{loginMBean.usuario.senha}" label="#{usuario['senha']}" title="#{usuario['senha']}"/>
		</h:panelGrid>
		
		<p><h:commandButton value="Entrar" action="#{loginMBean.logar}"/></p>
		<p><h:messages/></p>
	</h:form>
</h:body>
</html>